export default [
  {
    url: '/mock/allArticles',
    method: 'get',
    response: () => {
      return {
        code: 0,
        'data|1-1000': [
          {
            id: '@guid()', // 生成唯一的字符串ID
            title: '@ctitle(50)',
            author: '@cname',
            publishDate: '@datetime("yyyy-MM-dd")',
            url: '@url', // 生成带文章ID的URL
            seventyTwoPv: '@integer(100, 1000)',
            seventyTwoUv: '@integer(100, 1000)',
            siteTotalPv: '@integer(100, 1000)', // 生成100到1000
            siteTotalUv: '@integer(100, 1000)',
            outsiteTotalPv: '@integer(100, 1000)', // 生成100到1000
            outsiteTotalUv: '@integer(100, 1000)'
          }
        ],
        total: 1000,
        isSuccess: true,
        message: 'ok'
      }
    }
  },
  {
    url: '/mock/douyinData',
    method: 'get',
    response: () => {
      return {
        code: 0,
        'data|1-1000': [
          {
            id: '@guid()',
            title: '@ctitle(50)',
            url: '@url',
            publishDate: '@datetime("yyyy-MM-dd HH:mm:ss")',
            like: '@integer(100, 1000)',
            comments: '@integer(100, 1000)',
            share: '@integer(100, 1000)',
            collect: '@integer(100, 1000)'
          }
        ],
        total: 1000,
        isSuccess: true,
        message: 'ok'
      }
    }
  },
  {
    url: '/mock/officialAccountData',
    method: 'get',
    response: () => {
      return {
        code: 0,
        'data|1-1000': [
          {
            id: '@guid()',
            title: '@ctitle(50)',
            url: '@url',
            seventyTwoPv: '@integer(100, 1000)',
            seventyTwoUv: '@integer(100, 1000)',
            editor: '@cname()、@cname()、@cname()、@cname()',
            publishDate: '@datetime("yyyy-MM-dd HH:mm:ss")',
            read: '@integer(100, 1000)',
            like: '@integer(100, 1000)',
            comments: '@integer(100, 1000)',
            collect: '@integer(100, 1000)'
          }
        ],
        total: 1000,
        isSuccess: true,
        message: 'ok'
      }
    }
  },
  {
    url: '/mock/channelsData',
    method: 'get',
    response: () => {
      return {
        code: 0,
        'data|1-100': [
          {
            id: '@guid()',
            channelname: '@ctitle(10)',
            showNum: '@integer(100, 1000)'
          }
        ],
        total: 1000,
        isSuccess: true,
        message: 'ok'
      }
    }
  }
]
